<?php
declare (strict_types = 1);

namespace app\common\validate;

use think\Validate;
class BusinessOrder extends Validate
{
    protected $rule = ['school_id' => 'require|number','course_id' => 'require|number','add_time' => 'require|number',
    ];

    protected $message = ['school_id.require' => '用户id为必填项','school_id.number' => '用户id需为数字','course_id.require' => '课程id为必填项','course_id.number' => '课程id需为数字','add_time.require' => '支付时间为必填项','add_time.number' => '支付时间需为数字',
    ];

    /**
     * 添加
     */
    public function sceneAdd()
    {
        return $this->only(['school_id','course_id','add_time',]);
    }

    /**
     * 编辑
     */
    public function sceneEdit()
    {
        return $this->only(['school_id','course_id','add_time',]);
    }
}
